Skip to content

Make SplitQuotedString always returns a result #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jun 4, 2024

If the function SplitQuotedString finds an opening quote character and does not find the closing quote character, it will return an error.

Previously, in case of error, the returned split array was always empty.
Now the function will return the split array up to the point where the first error occurred, allowing the caller to ignore the error if needed.

If the function finds an opening quote character and does not find the
closing quote character, it will return an error.

Previously, in case of error, the returned split array was always empty.

Now, in any case, the function will return the split array up to the
point where the error occurred.
@cmaglie cmaglie self-assigned this Jun 4, 2024
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 4, 2024
@cmaglie cmaglie merged commit 3bde8d7 into master Jun 5, 2024
@cmaglie cmaglie deleted the improve_split branch June 5, 2024 08:18
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 13, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Aug 8, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jan 20, 2025
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Feb 13, 2025
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 23, 2025
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jul 14, 2025
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to arduino/arduino-cli that referenced this pull request Jul 25, 2025
…2625)

* Simplified error reporting in library detection

There is no need to duplicate the preprocessResult/Err variables.
This also simplifies naming making it more straighforward.

* Remove useless targetFilePath variable

* Slight improvement of removeBuildFromSketchFiles

* Rename variables for clarity

* Removed hardcoded build.warn_data_percentage in build.options file

Also fixed the "low memory" warning printer.

* Renamed variables for clarity

* Renamed variables for clarity

* Pre-compute sourceFile fields, and save the in the includes.cache

* Added ObjFileIsUpToDate method to sourceFile

* Implemented parallel task runner

* Simplify use of properties.SplitQuotedString

The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42

* Use runner.Task in GCC preprocessor

It slightly simplifies code, but also provide the basis for the next
commits.

* Parallelize library discovery phase in compile

* The number of jobs in library detection now follows --jobs flag

* Reordered properties construction for clarity

* Reordered compileFileWithRecipe for clarity

* Added integration test

* fix: libraries are recompiled if the list of include paths changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants